/**
 * 应用程序初始化入口
 * 
 */
package ms.core.gateway.servlet;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import ms.core.gateway.system.Application;

public class ServletListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		Application.start(sce);
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		Application.stop(sce);
	}
}
